package com.zxy.springbootactivemq;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Service;

/**
 * @author zhangxuyuan
 * @version 1.0
 * @date 2020/11/22
 */
@Service
public class JmsListenerService {

   @JmsListener(destination = "springboot")
    public void receiveMsg(MyMessage myMessage)
   {
       System.out.println(myMessage);
   }
}
